//
//  RegisterUser.h
//  HiQ
//
//  Created by arvintan on 12-8-1.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Connection.h"
#import "PacketDispathCenter.h"
#import "RegisterUserDelegate.h"


@interface RegisterUser : NSObject
{
    Connection  *_connect;
    id<RegisterUserDelegate> _delegate;
    
    NSTimer *registerTimeOut;
}

@property (nonatomic,strong) id<RegisterUserDelegate> _delegate;


-(id) initWithHost:(NSString*) host andport:(int) port;
-(void) sendMsg:(NSString*) message;
-(void) sendRegisterMsg:(NSString*) name Password:(NSString*)pwd HeadImage:(NSString*)image Sex:(NSString*) sex;
-(void) onReceiveRegisterPacket:(NSData *)data;

+(id) sharedLoginServer;


@end
